import React, { Component } from 'react';
import './MyEntry.scss'
class MyEntry extends Component {
    constructor(props){
        super(props);
        let pic1='https://pic.cdfgsanya.com/assets/upload/visual/e3763dce7fd8c3da3d36851194a08b70.png?1662996830112'
        let pic2='https://pic.cdfgsanya.com/assets/upload/visual/e6380f815b2f272c197bce33d3d5a0f0.png?1662996846908'
        let pic3='https://pic.cdfgsanya.com/assets/upload/visual/57b4b0241402068d8b494e77ac65b582.png?1662996862119'
        let pic4='https://pic.cdfgsanya.com/assets/upload/visual/a89820d6dc73e47261744f50a0bea0cc.png?1662996893301'
        let pic5='https://pic.cdfgsanya.com/assets/upload/visual/66b0188bf1fc285094f129e7b846e588.png?1662996912968'
        let pic6='https://pic.cdfgsanya.com/assets/upload/visual/edaa6a3066f363f40316d368567d9d97.jpg?1656054314250'
        let pic7='https://pic.cdfgsanya.com/assets/upload/visual/2225674418420d17e045cf4a9fff76cc.png?1662996854852'
        let pic8='https://pic.cdfgsanya.com/assets/upload/visual/8f2068cd40fd6305081bd255068b7f74.gif?1662996877539'
        let pic9='https://pic.cdfgsanya.com/assets/upload/visual/58946023386d5813621c8c8fb61e0d48.png?1662996903878'
        let pic10='https://pic.cdfgsanya.com/assets/upload/visual/67fb94c591129bdd1794c5a5e5a0d854.png?1662996923267'
        this.state={
            list:[
                {pic:pic1,name:'护肤'},
                {pic:pic2,name:'彩妆'},
                {pic:pic3,name:'香氛'},
                {pic:pic4,name:'进口酒'},
                {pic:pic5,name:'国产酒'},
                {pic:pic6,name:'精品奢货'},
                {pic:pic7,name:'食物百货'},
                {pic:pic8,name:'母婴专区'},
                {pic:pic9,name:'直播专区'},
                {pic:pic10,name:'特卖专区'},
            ]
        }
    }
    render() {
        return (
            <div className='entry'>
                <h3>1分抵1元。请您点击此处查看《购物须知》</h3>
            {
                this.state.list.map((item,index)=>{
                    return(
                        <div className="classify" key={index}>
                            <img src={item.pic} alt="" />
                            <span>{item.name}</span>
                        </div>
                    )
                })
            }
            </div>
        );
    }
}

export default MyEntry;